package com.lxw.study.structural.decorator.case2;

public class ColorDecorator extends ShapeDecorator {
    private String color;

    public ColorDecorator(Shape decoratedShape, String color) {
        super(decoratedShape);
        this.color = color;
    }

    @Override
    public void draw() {
        super.draw();
        fillColor();
    }

    private void fillColor() {
        System.out.println("Filling Shape with Color: " + color);
    }
}
